﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="NJL.WebUsers.Login" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>登录-农家乐网</title>
    <link href="Styles/base1.css" rel="stylesheet" type="text/css" />
    <link href="Styles/manage.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="Scripts/md5.js" type="text/javascript"></script>
    <script type="text/javascript">
        function checkEmail() {
            var txtEmail = document.getElementById("<%=txtEmail.ClientID %>").value;
            txtEmail = $.trim(txtEmail);
            if (txtEmail == "") {
                alert("电子邮件地址不能为空哦^_^");
                return false;
            }
            var txtPwdEmail = document.getElementById("<%=txtPwdEmail.ClientID %>").value;
            txtPwdEmail = $.trim(txtPwdEmail);
            if (txtPwdEmail == "") {
                alert("密码不能为空哦^_^");
                return false;
            }
            document.getElementById("<%=hidEmail.ClientID %>").value = md5(txtPwdEmail);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hidEmail" runat="server" />
    <div class="cleanFlex managecont">
        <div class="m_top_10"></div>
        <!--top信息-->
        <div class="registinfo">
            <p>
                回归田园生活，感受乡村气息！</p>
        </div>
        <!--登录-->
        <div class="reg" style="height:450px;">
            <h1>登录</h1>
            <div class="main">
                <div class="item">
                    <p class="info"><label>电子邮件(Email)</label></p>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="input" Style="width: 220px;"></asp:TextBox>
                    <span class="fonterror" runat="server" id="EmailError"></span>
                 
                </div>
                <div class="item">
                    <p class="info"><label>登录密码</label></p>
                    <asp:TextBox ID="txtPwdEmail" runat="server" TextMode="Password" CssClass="input" Style="width: 220px;"></asp:TextBox>
                    <span class="bluelink">
                         <a href="/FindPassword.aspx">忘记密码？</a>
                    </span>
                </div>
                <asp:Button ID="btnEmail" runat="server"  CssClass="claimLogin" OnClientClick="return checkEmail()"  OnClick="btnEmail_Click"  />
            </div>
            <div class="side f_right">
                <div class="other">
                    <div class="reglogin">
                        还没有注册？<span  class="greenlink"><a href="/Register.aspx">马上注册农家乐</a></span>
                    </div>
                    <p>不想麻烦？点一个试试~</p>

                    <div class="loginother">
                        <a style="cursor:pointer" onclick="javascript:openQQ()" class="qqlogin">QQ账号登录</a>
                        <a style="cursor:pointer" onclick="javascript:openSina()" class="sinalogin">新浪微博登录</a>
                        <a style="cursor:pointer" onclick="javascript:openRenRen()" class="renrenlogin">人人网账号登录</a>
                        <a style="width:66px; top: 116px; left: 3px; height: 67px; cursor:pointer" title="QQ账号登录" onclick="javascript:openQQ()"></a>
                        <a style="width:130px; top: 116px; left: 104px; height: 69px; cursor:pointer" title="人人网账号登录" onclick="javascript:openRenRen()"></a>
                        <a style="width:66px; top: 119px; left: 261px; height: 67px; cursor:pointer" title="新浪微博登录" onclick="javascript:openSina()"></a>
                    </div>
                </div>
            </div>
           <div class="cleanFlex"></div>
        </div>
    </div>
    </form>
</body>
</html>
